package de.slothsoft.wasbinich.swingclient.database;

import de.slothsoft.wasbinich.core.database.DatabaseException;
import de.slothsoft.wasbinich.core.database.LoginBean;

public class DummyLoginBean implements LoginBean {

    protected static String LOGIN_TOKEN = "JUnit";

    protected static String resetToken() {
	LOGIN_TOKEN = "JUnit";
	return LOGIN_TOKEN;
    }

    @Override
    public String getLoginToken() throws DatabaseException {
	return LOGIN_TOKEN;
    }

    @Override
    public boolean isLoggedIn() {
	return true;
    }

    @Override
    public void logOut() {
	// nothing to do
    }

}
